package io.github.quiteonion;

public abstract class ComputeTime {
    public abstract void Algorithm();
    public static long calculate(ComputeTime computeTime){
        long begin = System.currentTimeMillis();
        long time;
        computeTime.Algorithm();
        long end = System.currentTimeMillis();
        time = end-begin;
        return time;
    }
}